package com.lai.shop.vo;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @BelongsPackage: com.lai.shop.vo
 * @Author: laiciqi
 * @CreateTime: 2022-05-23  21:56
 * @Description: TODO
 * @Version: 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "验证码Vo")
public class VerificationCodeVo {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "/^(13[0-9]|14[01456879]|15[0-35-9]|16[2567]|17[0-8]|18[0-9]|19[0-35-9])\\d{8}$/", message = "手机号格式不正确")
    private String mobile;

    @NotBlank(message = "令牌不能为空")
    private String token;
}
